package com.justnow.offer.argstransfer;

/**
 * @author justnow
 * Created on 2020-09-05
 * Description
 */
public class Demo01 {
    public static void main(String[] args) {
        int a = 10;
        System.out.println("方法执行之前的值" + a);
        change(a);
        System.out.println("方法执行之后的值" + a);
    }

    public static void change(int a) {
        System.out.println("副本a的初始值" + a);
        a = 20;
        System.out.println("副本a的新值" + a);
    }
}
